package com.zrrd.shop.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *
 * @param <T>工具类 封装请求的响应结果
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResponseResult<T> {
    private Integer code;//响应的状态码
    private String message;//相应的消息文本
    private T data;//查询时将结果进行封装
    public ResponseResult(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
